package com.liang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author liangben
 * @date 2021/11/11 15:19:33
 */
@ApiModel(value = "demo", description = "哈哈")
@ToString
@Data
@TableName("user")
public class User implements Serializable {
    @TableId(type = IdType.AUTO)
    @TableField
    @ApiModelProperty("编号")
    private Integer id;

    @TableField
    @ApiModelProperty("姓名")
    private String name;

    @TableField
    @ApiModelProperty("年龄")
    private Integer age;
}
